package club.janna.concurrency.example.wait;

/**
 * @Auther: guopanbo
 * @Date: 2018/7/30 22:29
 * @Description:
 */
public class TestRun {
    public static void main(String[] args) {
        System.out.println("启动TestWait...");
        TestWait tw = new TestWait();
        new Thread(tw).start();
        System.out.println("启动完成");
        try {
            Thread.sleep(5 * 1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        //触发notify
        System.out.println("notify");
        synchronized(TestWait.class) {
            TestWait.class.notify();
        }
        System.out.println("notify 完成");
    }
}
